package vsion.demo.controller;

import vsion.demo.model.BusProcess;
import vsion.demo.service.safty.BusProcessService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 生产过程表(BusProcess)表控制层
 *
 * @author makejava
 * @since 2019-09-27 11:33:02
 */
@RestController
@RequestMapping("busProcess")
public class BusProcessController {
    /**
     * 服务对象
     */
    @Resource
    private BusProcessService busProcessService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BusProcess selectOne(Double id) {
        return this.busProcessService.queryById(id);
    }

}